#!/usr/bin/env python
#-*- coding: utf-8 -*-
import sys,os

max=[]
min=[]
def GetMix(Ownlist):
	mx=Ownlist[0]
	for each_item in range(len(Ownlist)):
		if Ownlist[each_item] >= mx:
			mx=Ownlist[each_item]
		else:
			pass
	return mx

def GetMin(Ownlist):
        mx=Ownlist[0]
        for each_item in range(len(Ownlist)):
                if Ownlist[each_item] <= mx:
                        mi=Ownlist[each_item]
                else:
                        pass
        return mi


if __name__=='__main__':
	a=[32,42,51,12,3,4,5]
	lag=GetMix(a)
	lit=GetMin(a)
	print (lag)
	print (lit)
	
